package com.xxbb.chapter_4.dome1;



import com.xxbb.util.tool.Tool;

public abstract class Common {

	private String name="张三";
	private short age=18;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public short getAge() {
		return age;
	}
	public void setAge(short age) {
		this.age = age;
	}
	// 方法
	//吃
	public abstract void eat();
	//睡
	public void sleep() {
		Tool.print(this.name+"在睡觉！");
	}
}
